home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
c
/
mc51bugs.zip
/
Q32943
< prev
next >
Wrap
Text File
|
1988-07-29
|
971b
|
53 lines
Q32943 Typedef Structure Member Causes Error C2059
C Compiler
5.10 | 5.10
MS-DOS | OS/2
Summary:
The valid code below will cause the C2059 "Typedef name" error.
This error does not occur if the member of structure C is a non-pointer
type.
A workaround for this problem is to use a distinct name for the
"char *B" element or declare a typedef pointer and use this to type
"B". The following is an example:
typedef char *pointer ;
typedef struct
{
pointer B ;
} ;
main()
{
}
Microsoft has confirmed this to be a problem with Version 5.10 of
the C compiler. Microsoft is researching this problem and will post
new information as it becomes available.
More Information:
The following is a sample code that causes the error:
typedef struct
{
int a ;
} B ;
typedef struct
{
char *B ;
} ;
main()
{
}
typedef struct
{
int a ;
} B ;
Keywords: buglist5.10
Updated 88/07/29 12:16